home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordDocAddLink.au3 < prev    next >
Text File  |  2007-09-08  |  496b  |  11 lines

  1. ; *******************************************************
  2. ; Example 1 - Create a word window with a new blank document,
  3. ;                add a link, then get a collection of links.
  4. ; *******************************************************
  5. ;
  6. #include <Word.au3>
  7. $oWordApp = _WordCreate ()
  8. $oDoc = _WordDocGetCollection ($oWordApp, 0)
  9. _WordDocAddLink ($oDoc, "", "www.AutoIt3.com", "", "AutoIt" & @CRLF, "Link to AutoIt")
  10. $oLinks = _WordDocLinkGetCollection ($oDoc)
  11. MsgBox(0, "Link Count", @extended)